package field_method06;

public class User {
    String userName;
    String password;
    public boolean login(String userNameParam,String passwordParam){
        System.out.println("传递过来的用户名:"+userNameParam);
        System.out.println("传递过来的密码:" + passwordParam);
        if (userNameParam.equals("wsdsg")&&passwordParam.equals("123456")) {
            return true;
        }else{
            return false;

        }
    }
}
